#include "Connection.h"
namespace OpenDrive {
	LaneLink::LaneLink(std::string from, std::string to) :from(from), to(to){}

	LaneLink::~LaneLink(){}

	std::string LaneLink::getFrom() const { return from; }

	std::string LaneLink::getTo() const { return to; }

	Connection::Connection(std::string id, std::string incomingRoad, std::string connectingRoad, std::string contactPoint) :id(id), incomingRoad(incomingRoad), connectingRoad(connectingRoad), contactPoint(contactPoint)
	{}

	Connection::~Connection(){}

	void Connection::addLaneLinks(const LaneLink &laneLink)	{ laneLinks.push_back(laneLink); }

	std::string Connection::getId() const { return id; }
	
	std::string Connection::getIncomingRoad() const { return incomingRoad; }
	
	std::string Connection::getConnectionRoad() const { return connectingRoad; }
	
	std::string Connection::getContactPoint() const { return contactPoint; }
	
	std::vector<LaneLink>& Connection::getLaneLinks() { return laneLinks; }
	
}